import request from '@/utils/request2'

// 列表
export function rectificationList(query) {
  return request({
    url: '/ehs_hazop_rectification/list',
    method: 'get',
    params: query
  })
}

// 新增保存
export function addRectification(temp) {
  return request({
    url: '/ehs_hazop_rectification/add',
    method: 'post',
    baseURL: process.env.VUE_APP_BASE_API2,
    params: temp
  })
}

// 编辑保存
export function editRectification(query) {
  return request({
    url: '/ehs_hazop_rectification/edit',
    method: 'post',
    baseURL: process.env.VUE_APP_BASE_API2,
    params: query
  })
}

// 伪删
export function deleteRectification(id) {
  return request({
    url: '/ehs_hazop_rectification/delete',
    method: 'get',
    baseURL: process.env.VUE_APP_BASE_API2,
    params: { id }
  })
}